<!doctype html>
<link rel="match" href="../expected/css-has-direct-child.html" />
<style>
    a:has(> span) {
        color: orange;
    }
</style>
<a href="https://example.com"><span>Link</span></a>
<a href="https://example.com"><em><span>Link</span></em></a>
